//
//  LGInputAccessoryView.m
//  ALS3.0
//
//  Created by guomianxiang on 2017/4/13.
//  Copyright © 2017年 guomianxiang. All rights reserved.
//

#import "LGInputAccessoryView.h"
#import "LGtools.h"
@implementation LGInputAccessoryView

- (instancetype)init {
    
    self = [[[UINib nibWithNibName:NSStringFromClass([LGInputAccessoryView class]) bundle:nil] instantiateWithOwner:nil options:nil]lastObject];
    self.frame = CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, 44);
    
    return self;
}
- (IBAction)completeBtnClick:(UIButton *)sender {
    if ([self.actionDelegate respondsToSelector:@selector(inputAccessoryViewCommitActionStyle:)]) {
        [self.actionDelegate inputAccessoryViewCommitActionStyle:(LGInputAccessoryViewActionStyleComplete)];
    }
}
- (IBAction)nextBtnClick:(UIButton *)sender {
    if ([self.actionDelegate respondsToSelector:@selector(inputAccessoryViewCommitActionStyle:)]) {
        [self.actionDelegate inputAccessoryViewCommitActionStyle:(LGInputAccessoryViewActionStyleNext)];
    }
}
- (IBAction)prevBtnClick:(UIButton *)sender {
    if ([self.actionDelegate respondsToSelector:@selector(inputAccessoryViewCommitActionStyle:)]) {
        [self.actionDelegate inputAccessoryViewCommitActionStyle:(LGInputAccessoryViewActionStylePrev)];
    }
}

//Complete = 0,
//LGInputAccessoryViewActionStyleNext = 1,
//LGInputAccessoryViewActionStylePrev

@end
